package com.jiyun.entity;

import javax.persistence.Id;

public class Student {
    @Id
    private Integer id;

    private String name;
    private Integer gid;
    private Integer cid;

    public Student(String name, Integer gid, Integer cid) {
        this.name = name;
        this.gid = gid;
        this.cid = cid;
    }

    public Student(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Student() {
    }

    public Student(Integer id, String name, Integer gid, Integer cid) {
        this.id = id;
        this.name = name;
        this.gid = gid;
        this.cid = cid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
}
